package com.openspring.framework.tree;

import java.util.Comparator;

public class SortAsc implements Comparator<Node> {

	@Override
	public int compare(Node n1, Node n2) {
		long result = n1.getSort() - n2.getSort();
		return result > 0 ? 1 : (result < 0 ? -1 : 0);
	}

}
